package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.user.dto.UserDTO;
import com.leyou.user.entity.User;

/**
 * @ClassName : UserService  //类名
 * @Description :   //描述
 * @Author : qingfeng  //作者
 * @Date: 2020-09-21 14:54  //时间
 */
public interface UserService extends IService<User> {
    //验证用户是否存在
    Boolean exists(String data, Integer type);
    //发送验证码
    void sendCode(String phone);
    //用户注册
    void register(User user, String code);

    UserDTO queryUserByPhoneAndPassword(String username, String password);
}
